package db.pojo;

import java.util.*;
import java.text.SimpleDateFormat;
import db.ext.EausermenupartExt;
@SuppressWarnings("unchecked")
/**
 * eausermenupart
 */
public class Eausermenupart {
	/**
	 * AUTHORIZEID
	 */
	public String aUTHORIZEID;
	/**
	 * USERID
	 */
	public String uSERID;
	/**
	 * MENUID
	 */
	public String mENUID;
	/**
	 * PARTID
	 */
	public String pARTID;
	/**
	 * PARTAUTHTYPE
	 */
	public String pARTAUTHTYPE;
	SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public static EausermenupartExt DB = new EausermenupartExt(); 
	
	public Eausermenupart() {
		super();
	}
	
	public Eausermenupart(String aUTHORIZEID, String uSERID, String mENUID, String pARTID, String pARTAUTHTYPE) {
		super();
		this.aUTHORIZEID = aUTHORIZEID; 
		this.uSERID = uSERID; 
		this.mENUID = mENUID; 
		this.pARTID = pARTID; 
		this.pARTAUTHTYPE = pARTAUTHTYPE; 
	}
	
	public String getAUTHORIZEID() {
		return aUTHORIZEID;
	}

	public void setAUTHORIZEID(String aUTHORIZEID) {
		this.aUTHORIZEID = aUTHORIZEID;
	} 
	
	public String getUSERID() {
		return uSERID;
	}

	public void setUSERID(String uSERID) {
		this.uSERID = uSERID;
	} 
	
	public String getMENUID() {
		return mENUID;
	}

	public void setMENUID(String mENUID) {
		this.mENUID = mENUID;
	} 
	
	public String getPARTID() {
		return pARTID;
	}

	public void setPARTID(String pARTID) {
		this.pARTID = pARTID;
	} 
	
	public String getPARTAUTHTYPE() {
		return pARTAUTHTYPE;
	}

	public void setPARTAUTHTYPE(String pARTAUTHTYPE) {
		this.pARTAUTHTYPE = pARTAUTHTYPE;
	} 
	
	
	public Map eausermenupartToMap() {
		Map map = new HashMap();
		try {
			map.put("aUTHORIZEID",this.aUTHORIZEID);
			map.put("uSERID",this.uSERID);
			map.put("mENUID",this.mENUID);
			map.put("pARTID",this.pARTID);
			map.put("pARTAUTHTYPE",this.pARTAUTHTYPE);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return map;
	}

	public Eausermenupart mapToEausermenupart(Map map){
		try {
			String aUTHORIZEID =  map.get("aUTHORIZEID").toString();
			String uSERID =  map.get("uSERID").toString();
			String mENUID =  map.get("mENUID").toString();
			String pARTID =  map.get("pARTID").toString();
			String pARTAUTHTYPE =  map.get("pARTAUTHTYPE").toString();
			Eausermenupart eausermenupart = new Eausermenupart(aUTHORIZEID, uSERID, mENUID, pARTID, pARTAUTHTYPE);
			return eausermenupart;
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	} 
	
	public String toString(){
		return eausermenupartToMap().toString();
	}
	
	//方便数据操作	
	public Eausermenupart insert(){
		return DB.insert(this);
	}
	public Eausermenupart update(){
		return DB.update(this);
	}
	
	public int delete(){
		return DB.delete(this);
	}
	
}
